.toc {
  width: 288px;
  height: 75%;
  padding: var(--spacing-4);
  overflow-y: auto;
  background-color: var(--pane-background);
  border-radius: var(--border-radius-md);
}

.title {
  padding: var(--spacing-1half) 0;
  font-size: var(--font-size-6);
  font-weight: 400;
  color: var(--global-foreground);
}

.list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.item {
  margin: 0;
  transition: all 0.2s ease;
}

.link {
  display: block;
  width: 100%;
  padding: var(--spacing-1half) 0;
  font-size: var(--font-size-5);
  line-height: 1.6;
  color: var(--global-mute-text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  transition: color 0.15s ease;
}

.link:hover {
  color: var(--global-foreground);
}

/* Level-based indentation */
.level1 .link {
  font-weight: 400;
}

.level2 .link {
  padding-left: var(--spacing-4);
  font-weight: 400;
}

.level3 .link {
  padding-left: var(--spacing-6);
  font-weight: 400;
}

.level4 .link {
  padding-left: var(--spacing-8);
  font-size: var(--font-size-4); /* 13px */
  font-weight: 400;
}

.level5 .link {
  padding-left: var(--spacing-10);
  font-size: var(--font-size-4); /* 13px */
  font-weight: 400;
}

.level5 .link:hover {
  color: var(--global-body-text);
}

/* Active state for button element */
.active {
  font-style: normal !important;
  font-weight: 500 !important;
  color: var(--global-foreground) !important;
}
